
package com.bolt.admin.module.sys.repository;

import com.bolt.admin.module.sys.entity.OrgEntity;
import com.bolt.support.spring.jpa.repository.BasicJpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
* Auto Generate Javadoc
* @author　米超
* 日期:2018-02-27 14:20:36
* 机构信息 Repository
* */
@Repository
public interface OrgRepository extends BasicJpaRepository<OrgEntity,String> {


    @Query("select count(id) from OrgEntity where areaCode=:areaCode")
    int findCountByArea(@Param("areaCode") String areaCode);


}